#define  _CRT_SECURE_NO_WARNINGS 1
#include"slist.h"
int main()
{
	SLTNode* plist = NULL;
	SLTPushFront(&plist,1);
	SLTPushFront(&plist, 2);
	SLTPushFront(&plist, 3);
	//SLTPushBack(&plist, 4);
	//SLTPopFront(&plist);
	//SLTPopBack(&plist);
	SLTNode* pos = STFind(plist, 3);
	if (pos)
	{
		SLInsert(&plist, pos, 30);
	}

       pos = STFind(plist, 2);
	   if (pos)
	   {
		   SLErase(&plist, pos);
	   }

	   pos = STFind(plist, 30);
	   if (pos)
	   {
		   SLEraseAfter(pos);
	   }
	   SLTprint(plist);

   return 0;
}